<template>
	<view>
		<view class="fixationHead">
			<view class="heeader">
				<view class="search">
					<input @click="goToHotpage('/pages/index/search')" placeholder="红米9a" type="text" value="" class="searchIpt" />
					<view class="searchImg"></view>
				</view>
			</view>

			<view class="naverHead">
				<view class="naver">
					<view v-for="(item, index) in classList" :key="index" :class="[{ item }, { itemStyle: showStyle == index }]" @click="getClassList(index,item.store_category_id)">{{ item.desc }}</view>
				</view>
			</view>
		</view>
		<block v-if="isindex">
		<view class="swiperHead">
			<swiper class="swiper" indicator-dots autoplay interval="2000" duration="1000" circular indicator-active-color="#E25A29">
				<swiper-item v-for="(item,index) in swiperList" :key="index" class="swiperItem">
					<image :src="item.pic" />
				</swiper-item>
			</swiper>
		</view>

		<!-- <view class="introduce">
			<view class="introduceItem">
				<image src="/static/images/right.png" />
				<text>抖车自营品牌</text>
			</view>
			<view class="introduceItem">
				<image src="/static/images/right.png" />
				<text>7天无忧退换货</text>
			</view>
			<view class="introduceItem">
				<image src="/static/images/right.png" />
				<text>48小时快速发货</text>
			</view>
		</view> -->

		<view class="hotcake">
			<!-- <view class="hotcakeItem">
				<view class="itemImg"><image src="/static/images/t1.png"></image></view>
				<view class="itemFont">精选门店</view>
			</view> -->
			<view @click="goToHotpage('/pages/new_welfare/new_welfare')" class="hotcakeItem">
				<view class="itemImg"><image src="/static/images/t2.png"></image></view>
				<view class="itemFont">新人专享</view>
			</view>
			<view @click="goToHotpage('/pages/service_life/service_life')" class="hotcakeItem">
				<view class="itemImg"><image src="/static/images/t3.png"></image></view>
				<view class="itemFont">必买爆款</view>
			</view>
			<view @click="goSwitchTab('/pages/mission/index')" class="hotcakeItem">
				<view class="itemImg"><image src="/static/images/t4.png"></image></view>
				<view class="itemFont">每日赚钱</view>
			</view>
			<view @click="goToHotpage('/pages/discount/discount')" class="hotcakeItem">
				<view class="itemImg"><image src="/static/images/t5.png"></image></view>
				<view class="itemFont">活动专区</view>
			</view>
		</view>
		
		
		<view class="faddishBody">
			<view class="faddishHead">
				<view class="todayFaddish">
					<text>新人专享</text>
					<text>新人专享优惠</text>
				</view>
				<view @click="goToHotpage('/pages/new_welfare/new_welfare')" class="moreDaddish">
					<text style="color: #8F8F8F;">更多</text>
					<image src="/static/images/rightclick.png"></image>
				</view>
			</view>
			<view class="faddishList">
				<scroll-view @scrolltolower="uploadMissioc" scroll-x="true" class="scroll">
					<view @click="goGoodDetail(item.product_id)" v-for="(item, index) in newList" :key="index" class="faddishItem">
						<view class="itemTop"><image :src="item.image"></image></view>

						<view class="itemDtail">
							<view class="itemTitle">{{ item.store_name }}</view>
							<view class="itemOriginal">
								<text>原价 :</text>
								<text>￥{{ item.ot_price }}</text>
							</view>
							<view class="itemBtm">
								<view class="itemPrice">
									<text>¥{{ item.price - item.integral }}</text>
									<text v-if="item.integral>0" style="color: #fa4e44;">+{{ item.integral }}</text>
									<text v-if="item.integral>0" style="font-size: 24rpx;color: #fa4e44;">(车币)</text>
								</view>
<!-- 								<view class="itemShop iconfont icon-gouwuche1"><image src="/static/images/shop-car.png"></image></view> -->
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</view>
		
		<view class="faddishBody">
			<view class="faddishHead">
				<view class="todayFaddish">
					<text>必买爆款</text>
					<text>好货好价格</text>
				</view>
				<view @click="goToHotpage('/pages/service_life/service_life')" class="moreDaddish">
					<text style="color: #8F8F8F;">更多</text>
					<image src="/static/images/rightclick.png"></image>
				</view>
			</view>
			<view class="faddishList">
				<scroll-view @scrolltolower="uploadMissioc" scroll-x="true" class="scroll">
					<view @click="goGoodDetail(item.product_id)" v-for="(item, index) in bestList" :key="index" class="faddishItem">
						<view class="itemTop"><image :src="item.image"></image></view>
		
						<view class="itemDtail">
							<view class="itemTitle">{{ item.store_name }}</view>
							<view class="itemOriginal">
								<text>原价 :</text>
								<text>￥{{ item.ot_price }}</text>
							</view>
							<view class="itemBtm">
								<view class="itemPrice">
									<text>¥{{ item.price - item.integral }}</text>
									<text v-if="item.integral>0" style="color: #fa4e44;">+{{ item.integral }}</text>
									<text v-if="item.integral>0" style="font-size: 24rpx;color: #fa4e44;">(车币)</text>
								</view>
								<!-- <view class="itemShop iconfont icon-gouwuche1"><image src="/static/images/shop-car.png"></image></view> -->
							</view>
						</view>
					</view>
				</scroll-view>
			</view>
		</view>	
		
		<view class="serviceClass">
			<view @click="goToHotpage('/pages/car_list/car_list?id=20')" class="serviceLeft">
				<image src="/static/images/banner10.png"></image>
			</view>
			<view class="serviceRight">
				<view @click="goToHotpage('/pages/car_list/car_list?id=21')" class="serviceRightTop">
					<image src="/static/images/banner11.png"></image>
				</view>
				<view class="serviceRightBtm">
					<image src="/static/images/banner12.png"></image>
				</view>
			</view>
		</view>
		
		<!-- <view class="doubleCoupons">
			<view class="couponHead">
				<image src="/static/images/h.png"></image>
				<text class="couponTitle">精选推荐</text>
				<text>先到先得,赶紧抢货</text>
			</view>
			<view class="couponFoot">
				<view v-for="(item, index) in handpick" :key="index" class="couponItem">
					<view class="itemImg"><image :src="item.image"></image></view>
					<view class="itemDetail">
						<view class="itemCheap">{{ item.store_name }}</view>
						<view class="couponShop">已有{{ item.sales }}人参与</view>
						<view class="couponPrice">
							<text>￥{{ item.price }}</text>
						</view>
						<view @click="goGoodDetail(item.product_id)" class="rightAway">马上抢购</view>
					</view>
				</view>
			</view>
		</view> -->
		
		<!--  底部推荐 -->
		<view class="guesscat" id="guesscat">
			<view class="box" id="guesscatbox">
				<block v-if="item.proinfo.length" v-for="(item, index) in yklist" :key="index">
					<view class="zcbrand  bg-white" v-if="item.finish == 0" @click="goodsdetail(item.exhibitionParkId)">
						<view class="headtit flex">
							<view class="brand-logo"><image :src="item.brandLogo" mode="widthFix"></image></view>
							<view class="info">
								<view class="brand-tit">{{ item.exhibitionParkName }}</view>
								<view class="ftinfo flex">
									<view class="tags">包邮</view>
									<view class="tags">7天无理由退换货</view>
								</view>
							</view>
							<view class="goscene">进入会场</view>
						</view>
						<view class="box flex justify-between">
							<view class="brandlist" v-for="(imgarr, m) in item.proinfo" :key="m">
								<view class="img"><image :src="imgarr.image" mode=""></image></view>
								<view class="price flex">
									<view class="shop-price">&yen;{{ imgarr.price }}</view>
									<view class="sharezhuan" v-if="imgarr.shareZhuan > 0">赚{{ imgarr.shareZhuan }}</view>
									<view class="del-price" v-else>{{ imgarr.mktprice }}</view>
								</view>
							</view>
						</view>
						<view class="timebox flex">
							<block v-if="item.finish == 1">已结束</block>
							<block v-else>
								<view class="cuicon cuIcon-timefill"></view>
								<view class="time">距结束 {{ item.endtime.day }}天{{ item.endtime.hour }}时{{ item.endtime.min }}分</view>
							</block>
						</view>
					</view>
				</block>
				<uni-load-more :status="loadStatus"></uni-load-more>
			</view>
		</view>
		</block>
		
		<block v-else>
			<view class="recommend">
				<block v-if="proList.length>0">
					<recommend :hostProduct='proList'></recommend>
					<uni-load-more :status="loadStatus"></uni-load-more>
				</block>
				<block v-else>
					<view class="emptyimg">
						<image src="/static/images/noCart.png" mode=""></image>
					</view>
				</block>	
			</view>			
		</block>
	</view>
</template>

<script>
import doubleCoupons from '@/components/double-coupons/double-coupons.vue';
import selectedTask from '@/components/selected-task/selected-task.vue'; // 优惠劵组件
import coupon from '@/components/coupon/coupon.vue'; // 优惠劵组件
import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
import recommend from '@/components/recommend/col.vue';
export default {
	components: {
		doubleCoupons,
		selectedTask,
		coupon,
		uniLoadMore,
		recommend,
	},
	data() {
		return {
			classList: [],
			showStyle: 0,
			handpick: [],
			pagenum: 1, // 页码值
			pagesize: 20, // 每页显示多少条数据
			total: '',
			isover: false, // 判断是否到底部，给用户提示
			isloading: false, // 判断数据是否在加载中
			swiperList:[],
			yklist: [], //好衣库会场
			ykpage: 0,
			ykcat:'',
			isindex:true,
			loading: true,
			loadStatus: 'more',
			bestList: [],// 必买爆款数据
			proList:[],
			newList:[]
		};
	},
	onLoad() {
		this.getSwiperList();
		this.getykdata(this.ykcat);
		this.getCate();
		this.getNewerData();
		this.getProductBest();
	},
	methods: {
		// 获取轮播图
		getSwiperList() {
			this.$api.getSwiperList(res => {
				this.swiperList = res.data.banner
			})
		},
		// 获取必买爆款数据
		getProductBest() {
			// 正在加载下页数据
			this.isloading = true;
			this.$api.getProductBest(
				{
					page: this.pagenum,
					limit: this.pagesize
				},
				res => {
					this.total = res.data.count;
					this.bestList = [...this.bestList, ...res.data.list];
					this.bestList.forEach(item => {
						item.integral = parseFloat(item.integral)
					})
					// 没有在加载下页数据
					this.isloading = false;
				}
			);
		},
		uploadMissioc() {
			if (!this.bestList.length) {
				return;
			}
			// 判断当前是否正在请求数据中
			if (this.isloading) {
				return;
			}
			if (this.pagesize * this.pagenum >= this.total) {
				this.isover = true;
				return;
			}
			this.pagenum++;
			this.getProductBest();
		},
		// 获取精选推荐
		getProductHot() {
			// 正在加载下页数据
			this.isloading = true;
			this.$api.getProductHot(
				{
					page: this.pagenum,
					limit: this.pagesize
				},
				res => {
					this.total = res.data.count;
					this.handpick = [...this.handpick, ...res.data.list];
					// 没有在加载下页数据
					this.isloading = false;
				}
			);
		},
		// 获取产品列表
		getListdata(cate_id = '', isinit = false) {
			let _this 			= this;			
			let pagenum 		= _this.pagenum;
			
			_this.loadStatus 	= 'loading';
			if (isinit) {
				_this.pagenum = 0;
				pagenum = 0;
				_this.proList = [];
			}
			_this.$api.getProductLists(
				{
					cate_id: cate_id,
					pagenum: pagenum,
					limit:_this.pagesize
				},
				res => {
					if (res.status == 200) {
						let _list = res.data.list;
						if (isinit) {
							_this.proList = _list;
						} else {
							_this.proList = [...this.proList, ..._list];
						}
						_this.proList.forEach(item => {
							item.integral = parseFloat(item.integral)
						})
						if (res.data.list.length >= _this.pagesize) {
							_this.loadStatus = 'more';
							_this.pagenum++;
						} else {
							// 数据已加载完毕
							_this.loadStatus = 'noMore';
						}
					} else {
						_this.loadStatus = 'noMore';
					}
				}
			);
		},		
		// 获取好衣库会场
		getykdata(type = '', isinit = false) {
			var _this = this;
			_this.loadStatus = 'loading';
			var page = _this.ykpage;
			if (isinit) {
				_this.ykpage = 0;
				page = 0;
			}
			_this.$api.getOnlineVenue(
				{
					type: type,
					page: page
				},
				res => {
					if (res.status == 200 && res.data.length > 0) {
						let _list = res.data;
						if (isinit) {
							_this.yklist = _list;
						} else {
							_this.yklist = [...this.yklist, ..._list];
						}
						if (res.data.length >= 10) {
							_this.loadStatus = 'more';
							_this.ykpage++;
						} else {
							// 数据已加载完毕
							_this.loadStatus = 'noMore';
						}
					} else {
						if (isinit) {
							_this.yklist = [];
						}
						_this.loadStatus = 'noMore';
					}
				}
			);
		},
		goodsdetail(id) {
			if(!id){
				this.$common.errorToShow("非法请求");
			}
			this.$common.navigateTo("/pages/store/activity/brand?id="+id);				
		},
		// 获取导航栏分类
		getCate(){
			this.$api.getCategory({},res=>{
				if(res.status==200){
					let data = res.data;
					let recom = [{
						store_category_id:0,
						desc: "首页", 
						pic:""
					}]
					let newdata = [...recom, ...data];
					this.classList = newdata;
				}
			})
		},
		// 导航栏状态改变
		getClassList(index,cid) {
			if(this.showStyle == index) return
			// this.showStyle = cid;
			this.showStyle = index;
			this.ykcat = cid;
			if(index==0){
				this.isindex = true;
				this.getykdata(this.ykcat,true);
			} else {
				this.isindex = false;
				this.getListdata(cid,true);
			}
			// this.getykdata(cid,true);
		},
		// 去商品列表
		goGoodDetail(id) {
			uni.navigateTo({
				url: `/pages/goods_details/index?id=${id}`
			});
		},
		// 跳转非tab页面
		goToHotpage(url) {
			uni.navigateTo({
				url
			});
		},
		// 跳转tab页面
		goSwitchTab(url) {
			uni.navigateTo({
				url: '/pages/article/index?id=223&id_type=1'
			});
		},
		getNewerData(){
			let that = this;
			that.$api.getProductNew({
				page:0,
				limit:5
			},res=>{
				if(res.status==200){
					that.newList = res.data.list;
				}
			})
		}
	},
	onReachBottom() {
		if (this.loadStatus === 'more') {
			if(this.isindex){
				this.getykdata(this.ykcat);
			} else {
				this.getListdata(this.ykcat);
			}			
		}		
		// if (!this.storeList.length) {
		// 	return;
		// }
		// // 判断当前是否正在请求数据中
		// if (this.newIsloading) {
		// 	return;
		// }
		// if (this.newPagesize * this.newPagenum >= this.newTotal) {
		// 	this.newIsover = true;
		// 	return;
		// }
		// this.newPagenum++;
		// this.storeMerchantList();
	}
	// onReachBottom() {
	// 	if (!this.handpick.length) {
	// 		return;
	// 	}
	// 	// 判断当前是否正在请求数据中
	// 	if (this.isloading) {
	// 		return;
	// 	}
	// 	if (this.pagesize * this.pagenum >= this.total) {
	// 		this.isover = true;
	// 		return;
	// 	}
	// 	this.pagenum++;
	// 	this.getProductHot();
	// }
};
</script>

<style lang="less">
page {
	// background-color: #ffffff;
	background-color: #F5F5F5;
}
.fixationHead {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	width: 100%;
	background-color: #ffffff;
	.heeader {
		padding: 20rpx;
		.search {
			position: relative;
			.searchIpt {
				background-color: #ededed;
				height: 64rpx;
				border-radius: 64rpx;
				padding-left: 80rpx;
			}
			.searchImg {
				background: url(../../static/images/search.png) no-repeat;
				background-size: 100%;
				width: 28rpx;
				height: 30rpx;
				position: absolute;
				top: 50%;
				left: 30rpx;
				transform: translateY(-50%);
			}
		}
	}

	.naverHead {
		.naver {
			display: flex;
			align-items: center;
			height: 80rpx;
			border-bottom: 1rpx solid #dadada;
			overflow-y: auto;
			.item {
				flex-shrink: 0;
				position: relative;
				padding: 0 30rpx;
				text-align: center;
			}
			.itemStyle {
				color: red;
			}
			.itemStyle::before {
				content: '';
				position: absolute;
				bottom: -20rpx;
				left: 50%;
				background-color: red;
				width: 80rpx;
				height: 4rpx;
				transform: translateX(-50%);
			}
		}
	}
}

.swiperHead {
	margin-top: 185rpx;
	text-align: center;
	padding: 20rpx;
	background-color: #ffffff;
	.swiper {
		.swiperItem {
			width: 690rpx;
			height: 300rpx;
			padding: 0 20rpx;
			border-radius: 20rpx;
			image {
				width: 100%;
				height: 100%;
				border-radius: 20rpx;
			}
		}
		/deep/.uni-swiper-dot {
			background-color: rgba(0, 0, 0, 0);
			border: 0.5rpx solid #ffffff;
		}
	}
}

.introduce {
	display: flex;
	justify-content: space-around;
	background-color: #ffffff;
	padding-bottom: 20rpx;
	.introduceItem {
		font-size: 24rpx;
		font-weight: 500;
		color: #999999;
		image {
			width: 26rpx;
			height: 26rpx;
			margin-right: 10rpx;
			vertical-align: middle;
		}
		text {
			vertical-align: middle;
		}
	}
}

.hotcake {
	display: flex;
	justify-content: space-around;
	font-size: 24rpx;
	background-color: #ffffff;
	padding-bottom: 20rpx;
	.hotcakeItem {
		text-align: center;
		.itemImg {
			width: 100rpx;
			height: 100rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}
	}
}

.faddishBody {
	padding: 0 20rpx;
	margin-top: 20rpx;
	overflow: hidden;
	background-color: #ffffff;
	.faddishHead {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 20rpx;
		margin: 20rpx 0;
		.todayFaddish {
			text:nth-child(1) {
				margin-right: 20rpx;
				font-size: 35rpx;
				font-weight: 500;
				font-family: PingFang-SC-Bold;
			}
			text:nth-child(2) {
				font-size: 20rpx;
				color: #b6a3a1;
			}
		}
		.moreDaddish {
			font-size: 26rpx;
			text {
				vertical-align: middle;
				margin-right: 10rpx;
			}
			image {
				width: 15rpx;
				height: 25rpx;
				vertical-align: middle;
				margin-top: 5rpx;
			}
		}
	}
	.faddishList {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		.scroll {
			overflow: hidden;
			white-space: nowrap;
			.faddishItem:last-child {
				margin-right: 0;
			}
			.faddishItem {
				display: inline-block;
				border-radius: 20px;
				margin-bottom: 20rpx;
				margin-right: 50rpx;
				.itemTop {
					width: 200rpx;
					height: 200rpx;
					border-radius: 20rpx;
					margin-bottom: 10rpx;
					image {
						width: 100%;
						height: 100%;
						border-radius: 20rpx;
					}
				}
				.itemDtail {
					width: 200rpx;
					.itemTitle {
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
						font-size:28rpx;
						color: #232323;
					}
					.itemOriginal {
						margin: 10rpx 0;
						font-size: 24rpx;
						color: #9a9a9a;
						text:nth-child(2) {
							text-decoration: line-through;
							margin-left: 15rpx;
						}
					}
					.itemBtm {
						display: flex;
						justify-content: space-between;
						align-items: center;
						color: #000000;
						.itemPrice {
							vertical-align: middle;
							font-size: 26rpx;
						}
						// .itemShop {
						// 	width: 43rpx;
						// 	height: 43rpx;
						// 	vertical-align: middle;
						// 	image {
						// 		width: 100%;
						// 		height: 100%;
						// 	}
						// }
					}
				}
			}
		}
	}
}

.serviceClass {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20rpx 20rpx 0;
	height: 350rpx;
	.serviceLeft {
		width: 36%;
		height: 100%;
		image {
			width: 100%;
			height: 100%;
		}
	}
	.serviceRight {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 60%;
		height: 100%;
		.serviceRightTop {
			width: 100%;
			height: 100%;
			margin-bottom: 20rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}
		.serviceRightBtm {
			width: 100%;
			height: 100%;
			image {
				width: 100%;
				height: 100%;
			}
		}
	}
}

.doubleCoupons {
	margin: 20rpx 25rpx;
	.couponHead {
		margin: 0 auto 20rpx;
		width: 690rpx;
		image {
			width: 24rpx;
			height: 30rpx;
			vertical-align: middle;
		}
		text {
			vertical-align: middle;
			font-size: 22rpx;
			font-weight: 500;
			color: #333333;
		}
		.couponTitle {
			margin: 0 10rpx;
			font-size: 30rpx;
			font-weight: bold;
			color: #333333;
		}
	}

	.couponFoot {
		.couponItem {
			position: relative;
			display: flex;
			align-items: center;
			margin-bottom: 20rpx;
			.itemImg {
				width: 194rpx;
				height: 170rpx;
				border-radius: 6px;
				image {
					width: 100%;
					height: 100%;
					border-radius: 6px;
				}
			}
			.itemDetail {
				display: flex;
				flex-direction: column;
				justify-content: space-between;
				margin-left: 25rpx;
				flex: 1;
				.itemCheap {
					font-size: 28rpx;
					font-weight: bold;
					color: #343434;
				}
				.couponPrice {
					margin-top: 10rpx;
					text {
						font-size: 35rpx;
						color: #eb3c4a;
					}
				}
				.couponShop {
					margin-top: 10rpx;
					font-size: 22rpx;
					color: #808080;
				}
				.rightAway {
					position: absolute;
					bottom: 35rpx;
					right: 30rpx;
					width: 129rpx;
					height: 57rpx;
					background: #df4c44;
					border-radius: 4rpx;
					font-size: 26rpx;
					font-weight: bold;
					color: #ffffff;
					text-align: center;
					line-height: 57rpx;
				}
			}
		}
	}
}

.guesscat {
	.box {
		flex-wrap: wrap;
		.prolist {
			margin-top: 20upx;
			margin-left: 20upx;
			width: 342upx;
			height: 575upx;
			border: rgba(245, 245, 245, 1) 2upx solid;
			border-radius: 8upx;
			overflow: hidden;
			.img {
				width: 342upx;
				height: 342upx;
			}
			.title {
				font-size: 28upx;
				color: #333;
				padding: 0upx 20upx;
				height: 90upx;
				line-height: 45upx;
				margin: 20upx 0 15upx;
				overflow: hidden;
			}
			.info {
				padding: 0 14upx;
				justify-content: space-between;
				.price {
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 36upx;
					color: rgba(250, 77, 68, 1);
				}
				.wb-price {
					margin-top: 10upx;
					text-decoration: line-through;
					color: rgba(128, 128, 128, 1);
					font-size: 28upx;
				}
				.sale {
					margin-top: 14upx;
					color: rgba(128, 128, 128, 1);
					font-size: 24upx;
				}
			}
			.type {
				display: inline-block;
				min-width: 65upx;
				height: 28upx;
				line-height: 28upx;
				background: rgba(250, 77, 68, 1);
				border-radius: 4upx;
				font-family: PingFang SC;
				font-weight: 500;
				color: rgba(255, 255, 255, 1);
				font-size: 20upx;
				text-align: center;
				margin-top: 8upx;
				margin-left: 20upx;
				padding: 0 6upx;
			}
		}
	}
}

.zcbrand {
	margin-top: 20upx;
	width: 100%;
	padding: 20upx 0;
	background-color: #fff;
	.headtit {
		padding: 0 20upx;
		.brand-logo {
			display: flex;
			//align-items: center;
			width: 90upx;
			height: 90upx;
			// background-color: #eee;
			// border-radius:50%;
			margin-right: 20upx;
			margin-top: 14upx;
			overflow: hidden;
			flex-shrink: 0;
		}
		.info {
			width: 450upx;
			.brand-tit {
				font-size: 28upx;
				height: 50upx;
				line-height: 50upx;
				overflow: hidden;
				color: rgba(59, 59, 59, 1);
			}
			.ftinfo {
				margin-top: 5upx;
				.num {
					color: rgba(154, 154, 154, 1);
				}
				.tags {
					display: inline-block;
					padding: 0 10upx;
					height: 34upx;
					background-color: #fff3f3;
					border-radius: 8upx;
					line-height: 30upx;
					font-size: 20upx;
					color: #eb4e69;
					margin-right: 10upx;
				}
			}
		}
		.goscene {
			width: 129upx;
			height: 48upx;
			background: rgba(250, 77, 68, 1);
			border-radius: 24upx;
			font-size: 24upx;
			font-family: PingFang SC;
			font-weight: 500;
			color: rgba(255, 255, 255, 1);
			line-height: 48upx;
			text-align: center;
			margin-left: auto;
			margin-top: 20upx;
			margin-right: 15upx;
		}
	}

	.box {
		padding: 20upx 30upx;
		.brandlist {
			width: 210upx;
			.img {
				border-radius: 10upx;
				width: 210upx; 
				height: 210upx;
				image {
					width: 100%;
					height: 100%;
				}
				overflow: hidden;
			}
			.price {
				width: 210upx;
				height: 40upx;
				line-height: 40upx;
				margin-top: 14upx;
				justify-content: center;
				.shop-price {
					font-size: 28upx;
					color: #333;
					margin-right: 10upx;
				}
				.sharezhuan {
					color: #fa4d44;
					font-size: 24upx;
				}
				.del-price {
					text-decoration: line-through;
					font-size: 20upx;
				}
			}
		}
	}

	.timebox {
		color: rgba(250, 77, 68, 1);
		align-items: center;
		padding-left: 30upx;
		font-size: 24upx;
		.cuicon {
			margin-top: 5upx;
			margin-right: 10upx;
		}
		.time {
			margin-right: 5upx;
		}
		.countdown {
			margin-top: 4upx;
		}
	}
}

.over_line {
	text-align: center;
	background-color: #f5f5f5;
	// padding: 5rpx 0;
	font-size: 26rpx;
	color: #999;
	padding: 20rpx 0;
}
.notAvailable {
	width: 100%;
	height: 150rpx;
	text-align: center;
	line-height: 200rpx;
	font-size: 24rpx;
	color: #666;
}

.recommend {
	margin-top: 200rpx;
	.emptyimg {
		width: 414rpx;
		height: 336rpx;
		margin: 78rpx auto 56rpx auto;
	}
}
</style>
